package kr.go.nih.biomedi.snptorrent.dao;

import java.util.HashMap;	
import java.util.List;

import kr.go.nih.biomedi.snptorrent.manager.SqlMapClientManager;

import com.ibatis.sqlmap.client.SqlMapClient;


public class SNP131Dao {
	private static SqlMapClient sqlMap = SqlMapClientManager.getSqlMapClient();
	public List getSNP131InformationByChromRange(String chrom, int chromStart, int chromEnd) throws Exception {
		HashMap param = new HashMap();
		param.put("chrom", chrom);
		param.put("chromStart", chromStart);
		param.put("chromEnd", chromEnd);
		
		return sqlMap.queryForList("getSNP131InformationbyChromRange", param);
	}

	public List getSNP131InformationBySNPName(String snpName) throws Exception {
		return sqlMap.queryForList("getSNP131InformationbySNPName", snpName);
	}
}
